import ApiService from "@/core/services/ApiService";

export default {
  getDormitoryList(params) {
    return ApiService.get(`/room/showAllRooms`, {
      params: params,
    });
  },
  getDormitoryDetails(params) {
    return ApiService.get(`/room/roomDetails`, {
      params: params,
    });
  },
  chooseDormitory(params) {
    return ApiService.post(`/room/chooseRoom`, params);
  },
  exitDormitory(params) {
    return ApiService.post(`/room/leaveRoom`, params);
  },
};
